package com.itheima.stock.api;

import com.itheima.stock.dto.LoginDTO;
import com.itheima.stock.response.ResponseResult;
import com.itheima.stock.vo.CaptchaVo;
import com.itheima.stock.vo.LoginVO;
import org.springframework.web.bind.annotation.*;


@RequestMapping(path = "/api")
public interface UserConreollerApi {
    @PostMapping(path = "/login")
    ResponseResult<LoginVO> login(@RequestBody LoginDTO loginDTO);

    @GetMapping(path = "/captcha")
    ResponseResult<CaptchaVo> getCaptcha();

    @GetMapping(path = "/user")
    String sayHello(@RequestParam("name") String name);

}
